<div class="zs-body" data-ng-init="formInit('gzxmjsxk', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzxmjsxk');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">行政许可</a>
            <i class="right-arr"></i>
            <a href="javascript:;">项目建设许可</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzxmjsxk') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzxmjsxk', gzxmjsxk.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzxmjsxk')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="唯一编号" ng-model="gzxmjsxk.queryObject['id']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目名称" ng-model="gzxmjsxk.queryObject['sxmmc']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目类型" ng-model="gzxmjsxk.queryObject['sxmlx']"/>
                </span>
            	
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="申请人" ng-model="gzxmjsxk.queryObject['ssqr']"/>
                </span>
				
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="建设许可状态" ng-model="gzxmjsxk.queryObject['sjsxkzt']"/>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gzxmjsxk')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzxmjsxk','allCheckbox');" />
                                    </th>
									<!--<th>唯一编号</th>-->
									<th>项目名称</th>
									<th>项目类型</th>
									<!--<th>项目编号</th>
									<th>申请材料</th>
									<th>许可开始时间</th>
									<th>许可结束时间</th>
									<th>备注</th>
									<th>适用范围</th>
									<th>办理机构</th>
									<th>责任处(科)室</th>-->
									<th>申请人</th>
									<th>申请时间</th>
									<!--<th>申请方式</th>
									<th>联系方式</th>-->
									<th>建设许可状态</th>
									<!--<th>经办人</th>-->
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzxmjsxk.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzxmjsxk',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  唯一编号 -->
            						<!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
									<!--  项目名称 -->
            						<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.sxmmc"></label>
                                        </a>
                                   </td>
									<!--  项目类型 -->
            						<!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.sxmlx"></label>
                                        </a>
                                   </td>-->
									<!--  项目编号 -->
            						<!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.sxmbh"></label>
                                        </a>
                                   </td>-->
									<!--  申请材料 -->
            						<!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.ssqcl"></label>
                                        </a>
                                   </td>-->
									<!--  许可开始时间 -->
								   <!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.dxkkssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>-->
									<!--  许可结束时间 -->
								 <!--  <td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.dxkjssj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>-->
									<!--  备注 -->
            						<!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.sbz"></label>
                                        </a>
                                   </td>-->
									<!--  适用范围 -->
								   <!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.ssyfw | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>-->
									<!--  办理机构 -->
            						<!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.sbljg"></label>
                                        </a>
                                   </td>-->
									<!--  责任处(科)室 -->
            						<!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.szrcs"></label>
                                        </a>
                                   </td>-->
									<!--  申请人 -->
            						<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.ssqr"></label>
                                        </a>
                                   </td>
									<!--  申请时间 -->
								   <td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.dsqsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  申请方式 -->
            						<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.ssqfs"></label>
                                        </a>
                                   </td>
									<!--  联系方式 -->
            						<!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.slxfs"></label>
                                        </a>
                                   </td>-->
									<!--  建设许可状态 -->
            						<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.sjsxkzt"></label>
                                        </a>
                                   </td>
									<!--  经办人 -->
            						<!--<td>
                                        <a ng-click="editRow('gzxmjsxk',r) && openWindow('edit');">
                                            <label ng-bind="r.sjbr"></label>
                                        </a>
                                   </td>-->
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzxmjsxk'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="项目建设许可编辑" width='800px' height='500px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<!--<tr>
                                <td class="text" width="20%">唯一编号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzxmjsxk.editRow.id" class="zs-input" />
                                </td>
                            </tr>-->
          					<tr>
                                <td class="text" width="20%">项目名称</td>
                                <td class="left" width="30%" colspan="3">
                                	<input readonly="true" type="text" ng-model="gzxmjsxk.editRow.sxmmc" class="zs-input" />
                                </td>
                           <!-- </tr>
          					<tr>-->
                            </tr>
                            <tr>
                                <td class="left" width="50%" colspan="4" style="padding-left:100px">
                                	<input type="button" name="ok" value="选择项目" class="zs-btn c-green" 
                                        ng-click="openWindow('chooseProject');" />
                                    <input type="button" name="ok" value="查看项目" class="zs-btn c-green" 
                                        ng-click="cheekProject(gzxmjsxk.editRow.xmid);" />
                                </td>
                            </tr>
          					<!--<tr>
                                <td class="text" width="20%">项目编号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzxmjsxk.editRow.sxmbh" class="zs-input" />
                                </td>
                            </tr>-->
                            
                            <tr>
                                <td class="text" width="20%">申请人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzxmjsxk.editRow.ssqr" class="zs-input" />
                                </td>
                         <!--   </tr>
						   <tr>-->
                                <td class="text" width="20%">申请时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dsqsj'  
                                		showcurday='gzxmjsxk.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzxmjsxk.editRow.dsqsj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">申请方式</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzxmjsxk.editRow.ssqfs" class="zs-input" />
                                </td>
                        <!--    </tr>
          					<tr>-->
                                <td class="text" width="20%">联系方式</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzxmjsxk.editRow.slxfs" class="zs-input" />
                                </td>
                            </tr>

						   <tr>
                                <td class="text" width="20%">许可开始时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dxkkssj'  showcurday='gzxmjsxk.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzxmjsxk.editRow.dxkkssj" >
							   		</ag-Datebox>
                                </td>
                            <!--</tr>
						   <tr>-->
                                <td class="text" width="20%">许可结束时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dxkjssj'  showcurday='gzxmjsxk.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzxmjsxk.editRow.dxkjssj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
          					
						   <tr>
                                <td class="text" width="20%">适用范围</td>
                                <td class="left" width="30%">
                             
							   		<input type="text" ng-model="gzxmjsxk.editRow.ssyfw" class="zs-input" />
                                <td class="text" width="20%">办理机构</td>
                                <td class="left" width="30%">
                                	<ag-Combotree class="zs-input" style="width:172px;height: 28px" 
										fn='orgidEdit'
										para="{ uDictionary:true,
												dictionary:'p_organization',
												nfn:'depEdit,postEdit,workEdit',
												pidField:'pid',
	                    						leafField:'leaf'}"
										ng-model="gzxmjsxk.editRow.sbljg"
										text-Value="gzxmjsxk.editRow.sbljgName"/>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">责任处(科)室</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzxmjsxk.editRow.szrcs" class="zs-input" />
                                </td>
                          <!--  </tr>
          					<tr>-->
                                <td class="text" width="20%">经办人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzxmjsxk.editRow.sjbr" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">建设许可状态</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzxmjsxk.editRow.sjsxkzt" class="zs-input" />
                                </td>
                          <!--  </tr>
          					
                            <tr>-->
                                <td class="text" width="20%">申请材料</td>
                                <td class="left" width="30%">
                                	<ag-Upload ng-model="gzxmjsxk.editRow.ssqcl" 
				                        para="{}"></ag-Upload>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">项目类型</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzxmjsxk.editRow.sxmlx" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                            	<td class="text" width="20%">备注</td>
                                <td class="left" width="30%" colspan="3">
                                	<input type="text" style="height:100px" ng-model="gzxmjsxk.editRow.sbz" class="zs-input" />
                                </td>
                                
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzxmjsxk', gzxmjsxk.editRow, closeWindow('edit'))"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
        
        <div ag-Window id="chooseProject" title="选择项目" width='560px' height='360px'>
		    <div class="zs-form-tab ibox"
		    	data-ng-init="formInit('gzprojectinfo', {
			        keyField:'id',
			        randomFields:['id'],
			        orderObject:{id:0}
			    }) && loadData('gzprojectinfo');setConHei();">
		        <div class="zs-nice-tab idTabs">
					<div class="tool item" style="margin-left:6px;">
		            	<span class="search-warpper">
		                    <i class="icon"></i>
		                    <input type="text" class="zs-input" placeholder="项目名称" ng-model="gzprojectinfo.queryObject['sxmmc']"/>
		                </span>
		            	<span class="search-warpper">
		                    <i class="icon"></i>
		                    <input type="text" class="zs-input" placeholder="项目类型" ng-model="gzprojectinfo.queryObject['sxmlx']"/>
		                </span>
		            </div>
		            <div class="operation item">
		                <a class="ope-1" ng-click="loadData('gzprojectinfo')"></a>
		                <a class="ope-2"></a>
		            </div>
		            <div class="switch">
		                
		            </div>
		        </div>
		        <div class="date-container">
		            <div id="zpgwd">
		                <div class="zs-data-table">
		                    <div class="container">
		                        <table>
		                            <thead>
		                                <tr>
											<th>项目名称</th>
											<th>项目编号</th>
											<th>项目类型</th>
		                                </tr>
		                            </thead>
		                            <tbody>
		                                <tr ng-repeat="r in gzprojectinfo.datas">
											<!--  项目名称 -->
		            						<td>
		                                        <a ng-click="chooseProject(gzxmjsxk.editRow,r,'chooseProject');">
		                                            <label ng-bind="r.sxmmc"></label>
		                                        </a>
		                                   </td>
		                                   <!--  项目编号 -->
		            						<td>
		                                        <a ng-click="chooseProject(gzxmjsxk.editRow,r,'chooseProject');">
		                                            <label ng-bind="r.sxmbh"></label>
		                                        </a>
		                                   </td>
											<!--  项目类型 -->
		            						<td>
		                                        <a ng-click="chooseProject(gzxmjsxk.editRow,r,'chooseProject');">
		                                            <label ng-bind="r.sxmlx"></label>
		                                        </a>
		                                   </td>
		                                </tr>
		                            </tbody>
		                        </table>
		                    </div>
		                </div>
		                <div class="zs-pagination-box">
		                    <ag-Page fn='gzprojectinfo'></ag-Page>
		                </div>
		            </div>
		        </div>
		    </div>
		</div>
    </div>
</div>